package DT;

import java.util.Stack;
import java.util.concurrent.*;

/**
 * @author gh
 * @create 2021-08-11 18:16
 */
public class stack {
    public static void main(String[] args) {
        Stack<Character> t= new Stack<>();

        t.push('a');
        t.push('b');
        System.out.println(t.toString());
        t.peek();
        t.pop();
        System.out.println(t.toString());
        t.peek();
        t.pop();
        System.out.println(t.toString());
        
        ExecutorService service = Executors.newCachedThreadPool();
        service.execute(
            () -> {
            // ... do something inside runnable task
            
        });
        service.shutdown();


    }
}
